/*
  定义常量
 */
'use strict';

var Constants = (function(Constants) {

	// 操作编码（和后台GlobalDefine.java中的定义保持一致）
	Constants.JSONTYPE = "application/json;charset=UTF-8";
	Constants.OPT_QUERY = 1;
	Constants.OPT_INSERT = 2;
	Constants.OPT_EDIT = 3;
	Constants.OPT_DEL = 4;
	Constants.OPT_IMPORT = 5;
	Constants.OPT_EXPORT = 6;
	Constants.OPT_CHANGESTATUS = 8;
	Constants.OPT_BMSFBSY = 10;
	Constants.OPT_SETQT = 60;
	Constants.OPT_SENDFILE = 70;

	// 视图模式
	Constants.VIEWMODE_QUERY = 1;
	Constants.VIEWMODE_INSERT = 2;
	Constants.VIEWMODE_EDIT = 3;
	Constants.VIEWMODE_DELETE = 4;
	Constants.VIEWMODE_SAVE = 5;
	Constants.VIEWMODE_COPY = 6;
	
	//---------基础数据
	//计量单位
	Constants.OPT_JLDW_USED = 10601101;
	//客户地区
	Constants.OPT_KHDQ_USED = 10600903;
	//货币
	Constants.OPT_HB_USED = 10601270;

	// GRID单元格CSS
	Constants.CELLSTYLE_DEMO = 'background-color: #99bce8';
	//期初CSS
	Constants.CELLSTYLE_QC = 'background-color: #F9D3D5';
	//明细CSS
	Constants.CeLLSTYLE_MX = 'background-color: #DBF1F5 ';
	//合计CSS
	Constants.CELLSTYLE_HJ = 'background-color: #F6F7BE';
	//累计CSS
	Constants.CELLSTYLE_LJ = 'background-color: #DAF3D7';
	
	return Constants;

})(window.Constants || {});